package webservice.yy.mycustom;

public class GetIdServicePortTypeProxy implements webservice.yy.mycustom.GetIdServicePortType {
  private String _endpoint = null;
  private webservice.yy.mycustom.GetIdServicePortType getIdServicePortType = null;
  
  public GetIdServicePortTypeProxy() {
    _initGetIdServicePortTypeProxy();
  }
  
  public GetIdServicePortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initGetIdServicePortTypeProxy();
  }
  
  private void _initGetIdServicePortTypeProxy() {
    try {
      getIdServicePortType = (new webservice.yy.mycustom.GetIdServiceLocator()).getGetIdServiceHttpPort();
      if (getIdServicePortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)getIdServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)getIdServicePortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (getIdServicePortType != null)
      ((javax.xml.rpc.Stub)getIdServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public webservice.yy.mycustom.GetIdServicePortType getGetIdServicePortType() {
    if (getIdServicePortType == null)
      _initGetIdServicePortTypeProxy();
    return getIdServicePortType;
  }
  
  public java.lang.String getId(java.lang.String in0) throws java.rmi.RemoteException{
    if (getIdServicePortType == null)
      _initGetIdServicePortTypeProxy();
    return getIdServicePortType.getId(in0);
  }
  
  
}